<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    Object.prototype.wife="冬雨";
    var obj = {
        name:"达姆",
        son:"小达姆",
        job:{
            name:"培训老师"
        }
    }
    //冻结对象 (浅冻结)
    Object.freeze(obj)


    //修改
    Object.prototype.wife = "18岁的冬雨"
    obj.job={}

    console.log(obj);
</script>
</html>